FROM rust:1 as builder

# Set workspace
RUN mkdir -p /usr/src/app
WORKDIR /usr/src/app

# Build runtime environment

# Build app
COPY . /usr/src/app
RUN cargo build --release


FROM debian:buster-slim
COPY --from=builder /usr/src/app/target/release/example /usr/local/bin/example

EXPOSE 16464
CMD [ "example"]
